home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / UNIX / C / INDENT / CHANGE.LOG < prev    next >
Text File  |  1989-09-11  |  10KB  |  304 lines

  1. Mon Sep 11 20:03:56 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  2.  
  3.     * io.c (diag): Add "char *msg".
  4.  
  5.     * Makefile (indent.tar.Z): Use -h.
  6.  
  7.     * Makefile (indent.tar.Z): Fix so it uses dist-indent.
  8.  
  9. Tue Sep  5 21:11:00 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  10.  
  11.     * indent.c (main, case lparen): Do not call dump_line on '{' if
  12.     line is empty.
  13.  
  14. Sun Sep  3 13:37:17 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  15.  
  16.     * args.c: Remove PRO_STDIN and have -st just set use_stdinout.
  17.     indent.c (main): Check use_stdinout.
  18.     indent_globs.h: Add use_stdinout
  19.  
  20.     * indent.c (main, case lbrace): Set parser_state_tos->in_or_st
  21.     to false.
  22.  
  23. Sat Sep  2 20:53:11 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  24.  
  25.     * parse.c (reduce): Tidy up comment before reduce.
  26.  
  27.     * lexi.c (lexi): Change (*tp == ';') to (*tp == ';' || *tp == ',')
  28.  
  29.     * lexi.c: Change #include "ctype.h" to #include <ctype.h>
  30.  
  31.     * io.c (count_spaces): Replace quoted actual ^H in source file
  32.     with 010.
  33.  
  34.     * various: Remove formfeeds (and one spurious ^\ that snuck into
  35.     a comment in parse.c).
  36.  
  37.     * io.c (dump_line): Convert random text after #else and #endif
  38.     to comments.
  39.  
  40.     * various: Remove unnecessary semicolons after "}".
  41.  
  42.     * indent.c (main, case comment) Remove unnecesary label proc_comment.
  43.  
  44.     * indent.c (main): Allow space between '#' and preprocessor
  45.     directives (two changes: 1. skip over the space; 2. change
  46.     strncmp's with "#if", "#else", and "#endif" to compare with
  47.     "if", etc. instead.).
  48.  
  49.     * indent.c (main): Break declarations after comma if the
  50.     declaration is getting too long.
  51.  
  52.     * args.c (set_option, PRO_INT): Check for !isdigit, not just
  53.     for end of string.
  54.  
  55.     * args.c (option_source): Add variable and code using it.
  56.  
  57.     * indent.c (main, search_brace, case lbrace): Put braces around
  58.     "else" code in "if (btype_2)".
  59.  
  60. Thu Aug 31 20:25:27 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  61.  
  62.     * indent_globs.h: Replace check_size with check_{code,com,lab}_size.
  63.     everywhere: Replace calls to check_size with calls to
  64.     check_{code,com,lab}_size.
  65.  
  66.     * indent.c (main, case rparen): Do not set last_token_ends_sp
  67.     if it is the while of a do-while.
  68.  
  69.     * indent.c (main, search_brace, case lbrace): If not BTYPE_2,
  70.     put '{' at end of save_com.
  71.  
  72.     * indent.c (main): Dynamically allocate di_stack.
  73.  
  74.     * globs.c, indent_globs.h (mymemcpy): New function.
  75.     indent.c: Use it instead of memcpy.
  76.  
  77.     * indent.c (main, case lparen): if encountered '{' in initializer
  78.     list, force it to a new line.
  79.  
  80. Tue Aug 22 01:12:53 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  81.  
  82.     * indent.c (main, case comment): Check for end of file (indicating
  83.     an unclosed comment).
  84.  
  85.     * args.c (pro, "gnu"): change -di0 to -di1.
  86.  
  87.     * lexi.c: Use gperf.
  88.  
  89. Thu Aug 10 18:21:39 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  90.  
  91.     * indent.c (bakcopy): Use mode 0666 for creat
  92.  
  93.     * indent.c (indent, case newline): Add "else_or_endif = false;"
  94.  
  95. Sun Aug  6 17:32:54 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  96.  
  97.     * indent.texinfo (Comments): Clarify that -gnu and -kr
  98.     include -nfca.
  99.  
  100. Thu Aug  3 18:23:17 1989  Jim Kingdon  (kingdon at susie)
  101.  
  102.     * args.c (pro): Added flags -cs, -ncs.
  103.     indent_globs.h: Added variable cast_space
  104.     indent.c (main) at rparen: Add test for cast and cast_space.
  105.     indent.texinfo (Statements, Option summary): Document -cs.
  106.  
  107.     * lexi.c (lexi): In the code that checks for keywords, comment
  108.     out performance hack that doesn't work right.
  109.  
  110.     * indent.c (main): Don't set parser_state_tos->last_token if
  111.     the token is a formfeed.
  112.  
  113.     * io.c (read_stdin): Remove unused variables i and pos.
  114.  
  115.     * indent.c (main): Remove unnecessary label do_binary.
  116.  
  117.     * many places: Clean up int<->enum conversions to avoid
  118.     compiler warnings (and to make debugging easy by declaring
  119.     everything as an enum which should be one).
  120.  
  121.     * indent.c (main): Initialize last_token_ends_sp to 0.
  122.  
  123.     * io.c (read_stdio): Change ch from char to int so that EOF
  124.     will work when it doesn't fit in a char.
  125.  
  126. Wed Aug  2 18:37:10 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  127.  
  128.     * lexi.c (specials): Correct misspelling of "typedef".
  129.  
  130. Sat Jul 15 19:37:56 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  131.  
  132.     * globs.c: Change copyright notice to be consistent with other
  133.     files. 
  134.  
  135. Wed Jul 12 00:16:59 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  136.  
  137.     * Makefile: Change it so that all files in the tar file are in
  138.     a directory dist-indent.
  139.  
  140.     * Remove LIBC from Makefile.
  141.  
  142.     * Released GNU indent 1.0
  143.  
  144.     * io.c: Remove #ifdef USG and always include <fcntl.h>.
  145.  
  146.     * version.h:  New file containing version number.
  147.     Makefile:  Add version.h.
  148.     args.c (pro, set_option): Add -version option and PRO_PRSTRING.
  149.     indent.texinfo (Miscellaneous options): Document -version.
  150.  
  151. Tue Jul  4 22:19:36 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  152.  
  153.     * indent.c (main): Put call to bakcopy() inside if (output == 0)
  154.  
  155.     * io.c: Include <fcntl.h> rather than <sys/file.h> (#ifdef USG)
  156.  
  157.     * indent_globs.h, io.c, lexi.c: Replace realloc with xrealloc
  158.  
  159.     * indent_globs.h, parse.c, args.c, io.c: Remove function
  160.     prototypes, void *, (read_file)variable size array.
  161.  
  162. Mon Jul  3 15:04:29 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  163.  
  164.     * Everywhere: use xrealloc and xmalloc instead of realloc and malloc.
  165.  
  166.     * globs.c: Give the program name in the error messages.
  167.  
  168.     * io.c (diag): Change error messages to <filename>: <line #>: form.
  169.  
  170.     * lexi.c (lexi): Rewrite string/character constant copying
  171.     loop to fix problems with backslashes.  Change error message
  172.     for unterminated constant to use terminology consistent with
  173.     K&R and to use the diag routine.
  174.  
  175. Sun Jul  2 16:51:23 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  176.  
  177.     * parse.c (parse): Replaced parser_state_tos->tos++ with inc_pstack
  178.     in one place it had been missed before.
  179.  
  180.     * parse.c, indent_globs.h: Move Inc_pstack to parse.c and make
  181.     it a function to facilitate debugging (it is probably getting
  182.     a bit big to be inline anyway).
  183.  
  184.     * indent_globs.h: Have all of the parser stacks (p_stack, il,
  185.     and cstk) share a common allocated size (p_stack_size).
  186.     (Inc_pstack) realloc them all, not just p_stack.
  187.     indent.c (main): Change all references to {il,cstk}_size to
  188.     p_stack_size.
  189.  
  190.     * indent.c (main): In initialization of
  191.     parser_state_tos->p_stack, etc., multiply size given to malloc
  192.     by sizeof (@var{whatever}).
  193.  
  194.         * indent_globs.h (Inc_pstack): multiply size given to realloc
  195.     by sizeof (enum codes).
  196.     
  197.     * indent.c (main): In the main case statement, in the lparen
  198.     case, change parser_state_tos->p_stack =
  199.     xrealloc(parser_state_tos, . . . to . . . xrealloc
  200.     (parser_state_tos->p_stack, . . .
  201.                      ^^^^^^^^^
  202.         This fixes a bug which caused core dumps.
  203.  
  204. Sat Jul  1 23:02:50 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  205.  
  206.     * args.c: Add -kr option to pro.
  207.  
  208. Fri Jun 30 14:06:50 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  209.     (actually these changes were made some time ago)
  210.     * indent.c: Treat va_dcl specially so we indent it right.
  211.  
  212.     * lexi.c (lexi): Make it so that initializations will get
  213.     lined up correctly by uncommenting out code that says
  214.     code = ps.block_init ? lparen : lbrace;
  215.     
  216.     * indent_codes.h: eliminated and put into indent_globs.h.
  217.     Converted from #defines to enum.
  218.     lexi.c, parse.c, indent.c, perhaps others: various variables changed
  219.     to enum    codes from int.
  220.  
  221.     * args.c: Add explicit flag to pro, and to set_option().
  222.     Add support for PRO_SETTINGS.  Streamline pro to eliminate
  223.     PRO_SPECIAL.  Use enum for PRO_*.
  224.     
  225.     * indent.c (bakcopy): Give error from perror instead of vague
  226.     error message.
  227.     
  228.     * indent.c (bakcopy): bakfile dynamically allocated.
  229.  
  230.     * io.c (dump_line): fix bug involving a formfeed on a line of
  231.     its own.
  232.  
  233.     * io.c (read_file, fill_buffer): read input file into memory.
  234.     change token, procname to be a pointer into input file.
  235.     indent.c (main): use token as pointer into input file.  Move
  236.     troff mode string constant stuff here from fill_buffer.
  237.     io.c, indent.c: change save_com to be realloc'd as necessary.
  238.  
  239.     * indent.c (main): Change it so 'indent foo bar baz' gives an
  240.     error message without clobbering bar.
  241.  
  242. Tue Jun 27 03:10:53 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  243.  
  244.     Note: Up until this point this ChangeLog is fairly sketchy.
  245.     From here on I promise to log all changes.
  246.  
  247.     * all files: Change the parser_state structure and the stack
  248.     of parser states to be a dynamically allocated linked list
  249.     instead of a 5 member structure.  Also change the p_stack, il,
  250.     cstk, and paren_indents arrays within the parser state to be
  251.     dynamically allocated and realloc'd as necessary.
  252.  
  253. Wed Jun 21 21:28:37 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  254.  
  255.     * indent_globs.h: Use ANSI token pasting #ifdef __STDC__.
  256.     (check_size): Check the return value of realloc and exit if it's nil.
  257.  
  258.     * lexi.c (user_specials{_max,_idx}): New variables for user-defined
  259.     specials.
  260.     (addkey): Define new specials in user_specials, which is dynamically
  261.     expanded if necessary.
  262.  
  263. Thu Jun  8 15:45:07 1989  Jim Kingdon  (kingdon at spiff)
  264.  
  265.     * Add -fca option.  If -fca is set, comments will be reformatted.
  266.     If -nfca is set, comments will be left untouched (as with
  267.     comments starting with '*').  The default is -fca.
  268.  
  269.     * Add -cp option.  The column number for comments to the right
  270.     of #else and #endif.  The default is -cp33.
  271.  
  272.     * Add -ss and -nss option.  When specified, -ss places a space
  273.     before a semicolon when it occurs after a while or for, e.g.
  274.       while (*p++ == ' ') ;
  275.     whereas -nss would give
  276.       while (*p++ == ' ');
  277.     The default is -nss.
  278.  
  279. Tue Jun  6 10:43:20 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  280.  
  281.     * Add -bli option
  282.     This allows you to indent a compound statement within an if,
  283.     while, etc., e.g. -bli2 gives
  284.     if (foo == bar)
  285.       {
  286.         baz = 2;
  287.       }
  288.     whereas -bli0 (the default) gives
  289.     if (foo == bar)
  290.     {
  291.       baz = 2;
  292.     }
  293.  
  294.     * Make -ip numeric
  295.     The -ip parameter now is numeric--the value is the number of
  296.     spaces to indent them.  The -d, -ci, and -cli parameters are also
  297.     now in spaces rather than indent levels.
  298.  
  299. Local Variables:
  300. mode: indented-text
  301. left-margin: 8
  302. version-control: never
  303. End:
  304.